package com.moliku.insurance.process.service.impl;

import com.moliku.insurance.process.mapper.InsuranceCarMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.moliku.insurance.model.dto.wuTong.InsuranceCar;
import com.moliku.insurance.process.service.InsuranceCarService;

import java.util.List;

/**
 * @Description: 梧桐车险--车险列表
 * @Author: yws
 * @Date: 2021/3/31 15:26
 */
@Service
public class InsuranceCarServiceImpl extends ServiceImpl<InsuranceCarMapper, InsuranceCar> implements InsuranceCarService {
    @Autowired
    private InsuranceCarMapper carMapper;

    @Override
    public InsuranceCar selectCarByProposalFormId(String ProposalFormId) {
        return carMapper.selectCarByProposalFormId(ProposalFormId);
    }

    @Override
    public Integer updateCarByProposalFormId(InsuranceCar insuranceCar) {
        return carMapper.updateCarByProposalFormId(insuranceCar);
    }

    @Override
    public List<InsuranceCar> selectCarByInsuranceCar(InsuranceCar insuranceCar) {
        return carMapper.selectCarByInsuranceCar(insuranceCar);
    }
}
